package com.computercourse.api.search;

import com.computercourse.framework.domain.course.CoursePub;
import com.computercourse.framework.domain.course.TeachplanMediaPub;
import com.computercourse.framework.domain.search.CourseSearchParam;
import com.computercourse.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

/**
 * @description
 * @author Feng.Yuan
 * @date 2020/1/30 10:58 上午
 * @return
 */
@Api(value = "课程搜索",description = "课程搜索",tags = {"课程搜索"})
public interface EsCourseControllerApi {

    //搜索课程信息
    @ApiOperation("课程综合搜索")
     QueryResponseResult<CoursePub> list(int page, int size, CourseSearchParam courseSearchParam);


    @ApiOperation("根据课程id查询课程信息")
     Map<String,CoursePub> getAll(String id);

    @ApiOperation("根据课程计划id查询课程媒资信息")
    TeachplanMediaPub getMedia(String id);
}
